package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 私信表
 */
@Getter
@Setter
public class Letter extends BaseDomain {

    private User messages;//私信人

    private User dMessages;//被私信人

    private boolean isViewed;//私信是否被查看

    private String content;//私信内容

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date messagesDate;//私信创建时间

}